package com.guanglan.mapper;

import com.guanglan.entity.SysUser;
import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import java.util.List;
import java.util.Map;

@MapperScan
public interface SysUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysUser sysUser);

    int insertSelective(SysUser sysUser);

    SysUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUser sysUser);

    int updateByPrimaryKey(SysUser sysUser);

    SysUser selectSysUserByUserName(@Param("userName") String userName);

    List<SysUser> selectSysUsers(@Param("userName") String userName,@Param("userPhone") String userPhone);
}